.class Limoblife/yogamoment/lite/MainActivity$24;
.super Landroid/os/Handler;
.source "MainActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Limoblife/yogamoment/lite/MainActivity;->updateMusicPross()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Limoblife/yogamoment/lite/MainActivity;


# direct methods
.method constructor <init>(Limoblife/yogamoment/lite/MainActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    .line 1258
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5
    .parameter "msg"

    .prologue
    .line 1260
    iget v3, p1, Landroid/os/Message;->what:I

    if-nez v3, :cond_2

    .line 1261
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v3, :cond_0

    .line 1262
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->musicPross:Landroid/widget/SeekBar;

    if-eqz v3, :cond_0

    .line 1263
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-nez v3, :cond_1

    .line 1288
    :cond_0
    :goto_0
    return-void

    .line 1267
    :cond_1
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    .line 1268
    invoke-virtual {v3}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v1

    .line 1269
    .local v1, position:I
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v0

    .line 1270
    .local v0, mMax:I
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->musicPross:Landroid/widget/SeekBar;

    invoke-virtual {v3}, Landroid/widget/SeekBar;->getMax()I

    move-result v2

    .line 1272
    .local v2, sMax:I
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->musicPross:Landroid/widget/SeekBar;

    mul-int v4, v1, v2

    div-int/2addr v4, v0

    invoke-virtual {v3, v4}, Landroid/widget/SeekBar;->setProgress(I)V

    goto :goto_0

    .line 1273
    .end local v0           #mMax:I
    .end local v1           #position:I
    .end local v2           #sMax:I
    :cond_2
    iget v3, p1, Landroid/os/Message;->what:I

    const/4 v4, 0x3

    if-ne v3, v4, :cond_3

    .line 1274
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    #calls: Limoblife/yogamoment/lite/MainActivity;->closeUpAndDownWindowa()V
    invoke-static {v3}, Limoblife/yogamoment/lite/MainActivity;->access$9(Limoblife/yogamoment/lite/MainActivity;)V

    goto :goto_0

    .line 1275
    :cond_3
    iget v3, p1, Landroid/os/Message;->what:I

    const/4 v4, 0x4

    if-ne v3, v4, :cond_0

    .line 1276
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v3, v3, Limoblife/yogamoment/lite/MainActivity;->random:Ljava/util/Random;

    invoke-virtual {v3}, Ljava/util/Random;->nextInt()I

    move-result v3

    ushr-int/lit8 v3, v3, 0x1

    rem-int/lit8 v3, v3, 0x3

    packed-switch v3, :pswitch_data_0

    goto :goto_0

    .line 1278
    :pswitch_0
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    #calls: Limoblife/yogamoment/lite/MainActivity;->showNextView()V
    invoke-static {v3}, Limoblife/yogamoment/lite/MainActivity;->access$10(Limoblife/yogamoment/lite/MainActivity;)V

    goto :goto_0

    .line 1281
    :pswitch_1
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    #calls: Limoblife/yogamoment/lite/MainActivity;->showPrvView()V
    invoke-static {v3}, Limoblife/yogamoment/lite/MainActivity;->access$11(Limoblife/yogamoment/lite/MainActivity;)V

    goto :goto_0

    .line 1284
    :pswitch_2
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$24;->this$0:Limoblife/yogamoment/lite/MainActivity;

    #calls: Limoblife/yogamoment/lite/MainActivity;->showFadeInOut()V
    invoke-static {v3}, Limoblife/yogamoment/lite/MainActivity;->access$12(Limoblife/yogamoment/lite/MainActivity;)V

    goto :goto_0

    .line 1276
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
